package com.zzs.common.core.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * @date 2025/03/17
 * @author zzs
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = JsonArrayValidator.class)
public @interface ValidJsonArray {
    String message() default "{测试用例必须是json数组, 且每个对象只能包含input和output}";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
